const baesUrl ='https://api-hmugo-web.itheima.net/api/public/v1'
export const get=(url,data)=>{
		return  new Promise((resolve,reject)=>{
			uni.request({
				url:baesUrl +url,
				data,
				success:(res)=>{
					resolve(res)
				}
			})
		})
}
export const post=(url,data)=>{
		return  new Promise((resolve,reject)=>{
			uni.request({
				method:"POST",
				url:baesUrl +url,
				data,
				success:(res)=>{
					resolve(res)
				}
			})
		})
}
